home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / pine / ccmd / cmfnc.top < prev    next >
Encoding:
Text File  |  1988-08-19  |  1.8 KB  |  43 lines

  1. /*
  2.  Author: Andrew Lowry
  3.  
  4.  Columbia University Center for Computing Activities, July 1986.
  5.  Copyright (C) 1986, 1987, Trustees of Columbia University in the City
  6.  of New York.  Permission is granted to any individual or institution
  7.  to use, copy, or redistribute this software so long as it is not sold
  8.  for profit, provided this copyright notice is retained.
  9. */
  10. /* cmfnc.h
  11. **
  12. ** This file contains function-specific symbols and declarations needed
  13. ** by application programs that wish to make use of the ccmd package.
  14. ** It is generated by m4 by means of the cmfnc.h4 file in conjunction with
  15. ** individual configuration files (as in cm???.cnf).  The initial portion
  16. ** of the file, including this comment, is copied verbatim from the file
  17. ** cmfnc.top.
  18. **
  19. ** Function codes are given names like _CMTTT, where TTT is the three-
  20. ** letter abbreviation for the type, and are assigned small positive
  21. ** integer values.
  22. **
  23. ** Function-specific error codes are given names of the form TTTxEEE,
  24. ** where TTT is the three-letter abbreviation for the parse type, and
  25. ** EEE is an abbreviation for the error.  The values assigned to these
  26. ** symbols are in two parts.  The left half contains the function code
  27. ** for the parse function, and the right half contains an integer
  28. ** in the range 0 to n-1, where there are n errors defined for the parse
  29. ** type.  Generic error codes for the ccmd package as a whole are given
  30. ** names like CMxEEE, and have zeros in the left half.
  31. **
  32. ** Flag values are generally given names like TTT_FFF, where FFF is a
  33. ** mnemonic for the flag.  Other constants are given names like _TTTCCC,
  34. ** where CCC is a mnemonic for the constant.
  35. **/
  36.  
  37. /* Macro to build error code values from the function code and error
  38. ** sub-code values.
  39. **/
  40.  
  41. #define CMERR(fcode,ecode)    ((fcode << 8) | ecode)
  42.  
  43.